package extend02;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-04-07
 * Time：11:24
 */

class Employee {
  String name;
  char sex;
  double birthday;
  double salary;
  double addSalary(double salry){
      if(salary<5000)
          salary=5000;
      else
          salary=salary*1.1;
      return salary;
  }
  void showSalary(String name,double salary){
      System.out.println(name+"的工资为："+salary);
  }


    public Employee(String name, char sex, double birthday, double salary) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.salary = salary;
    }

    public Employee(char sex, double birthday) {
        this.sex = sex;
        this.birthday = birthday;
    }

    public Employee(String name, char sex, double birthday) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
    }
}

class  Cat {

}





